<template>
  <div>
    <!--双向绑定-->
    <input type="text" v-model="state.value"> <br/>
    <p>{{ state.value }}</p>
  </div>
</template>
<script>
import { reactive } from 'vue'
export default {
  setup(){
    const state = reactive({
      value:'测试'
    })
    return {state}
  }
}
</script>